<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-slide.css" />
    <link rel="stylesheet" type="text/css" href="../../css/base.css">
    <link rel="stylesheet" type="text/css" href="../../css/aui-flex.css">
    <link rel="stylesheet" type="text/css" href="css/companyNews.css">
    <link rel="stylesheet" href="../../css/pulice.css">
    <style>
        .WD-shenti{padding: 0 0.6rem}
        .WD-center-top{font-size:.95rem;line-height:1;margin-top:1.375rem;margin-bottom:1.125rem;}
        .notice{line-height:1;font-size:.55rem;}
        .text{margin-top:1.25rem;font-size:.7rem;}
        .p2{color:#333;text-align:justify;}
        .text-bottom{float: right;}
        .text-bottom p{text-align: center;color: #333}
    </style>
    <script src="../../js/libs/zepto.min.js"></script>

    <script src="../../js/vue.min.js"></script>
    <script>
        const SURL = "http://192.144.135.180/"; // 接口
        const imgUrl = "http://zzhtwl.oss-cn-qingdao.aliyuncs.com/"; // 图片地址

        $(function () {
            var href = window.location.href.split('/');
            var arr2 = href.length;
            var id = href[arr2-1].match(/[0-9]*/g).toString();
            var id2 = parseInt(id.replace(/,/g,''));

            var app = new Vue({
                el: '#app',
                data: {
                    newsTit: '',
                    catName: '',
                    createTime: '',
                    newsCont: '',
                }
            });

            $('.hm-bar').load('../../data/headerOther.html', function () {
                $(this).find('.head-main').text('公司新闻');
                $(this).find('.head-left').on('tap', function () {
                    window.history.back()
                })
            });

            $.ajax({
                url: SURL + 'app/article/companyNewById',
                data: {
                    articleId: id2
                },
                success: function (data) {
                    app.newsTit = data.data.articleTitle;
                    app.catName = data.data.catName;
                    app.createTime = data.data.createTime;
                    app.newsCont = data.data.articleContent;
                }
            })
        });
    </script>
    <title>新闻详情</title>
</head>
<body style="background: #fff !important">
    <div id="app">
        <!--头部-->
        <div class="hm-bar"></div>
        <!--身体-->
        <div class="WD-shenti">
            <div class="WD-center-top">
                {{newsTit}}
            </div>
            <div class="notice">
                <p>{{catName}}&nbsp;&nbsp;&nbsp;&nbsp;{{createTime}}</p>
            </div>

            <div class="text" v-html="newsCont"></div>
        </div>
    </div>
</body>
</html>
